var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(e, d, c) {
    if (status == 0 && e == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = c;
    var b = -1;
    if (status <= b++) {
        cm.dispose()
    } else {
        if (status === b++) {
            var a = cm.getNumberFromQuestInfo(100351, "kill");
            cm.setNumberForQuestInfo(100351, "kill", 0);
            cm.gloryRagingSeaReward(a * 100, 1);
            cm.gainGloryEventPoint(a * 100);
            cm.dispose()
        }
    }
};